package cn.chencq.proxy.timer.task;

import java.util.TimerTask;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import cn.chencq.proxy.timer.service.ProxyIPService;

public class ProxyIPTask extends TimerTask {
	private static final Logger LOGGER = LoggerFactory.getLogger(ProxyIPTask.class);

	@Override
	public void run() {
		if (!ProxyIPService.process) {
			LOGGER.info("start to fetch proxy ip from internet....");
			new ProxyIPService().get();
		}
		
	}

}
